package gatech.cs2340.adventuretime.persistent.records;

/**
 * 
 * A simple record of drug recommendations.
 * 
 * Design tweak from earlier Milestones: we now treat prescriptions just like those little pieces of paper they hand out.
 * We had originally kept a list of prescriptions in the database and given each prescription a treatment record reference.
 * With db4o this is unnecessary, and we might as well treat them like the throwaway objects they are. (db4o saves/retrieves structured objects and collections automagically)
 * @author Winfred Nadeau
 *
 */
public class Prescription extends Record {
	/** dosage in milligrams **/
	private int dosage;
	private String drug;
	private String directions;
	public Prescription(String drug, int dosage){
		this(drug,dosage,"");
	}
	public Prescription(String drug, int dosage, String directions){
		super();
		this.dosage = dosage;
		this.drug = drug;
		this.directions = directions;
	}
	

}
